package cn.ad.model;

import cn.ad.enumration.AdFormat;
import org.apache.ibatis.type.Alias;

import java.util.List;

@Alias("creativeModel")
public class CreativeModel {
	/**
	 * 创意ID
	 */
	private int id;
	/**
	 * 创意名称
	 */
	private String name;
	/**
	 * 广告形式ID
	 */
	private int adFormatId;
	/**
	 * 广告形式名称
	 */
	private String adFormatName;
	/**
	 * 广告模版名称
	 */
	private String adTemplateName;
	/**
	 * 实例图片地址
	 */
	private String sampleUrl;

	private List<DropDownModel> platformList;
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAdFormatId() {
		return adFormatId;
	}

	public void setAdFormatId(int adFormatId) {
		this.adFormatId = adFormatId;
	}

	public String getAdFormatName() {
		return AdFormat.forValue(adFormatId);
	}

	public void setAdFormatName(String adFormatName) {
		this.adFormatName = adFormatName;
	}

	public String getAdTemplateName() {
		return adTemplateName;
	}

	public void setAdTemplateName(String adTemplateName) {
		this.adTemplateName = adTemplateName;
	}

	public String getSampleUrl() {
		return sampleUrl;
	}

	public void setSampleUrl(String sampleUrl) {
		this.sampleUrl = sampleUrl;
	}


	public List<DropDownModel> getPlatformList() {
		return platformList;
	}

	public void setPlatformList(List<DropDownModel> platformList) {
		this.platformList = platformList;
	}
}
